/* eslint-disable no-const-assign */
/* eslint-disable no-unused-vars */
// 环境
const env = import.meta.env.MODE
let ServeUrl, ServeApi, AppId
console.log('当前环境', env)
if (env === 'debugging') {
  // 联调
  /*  ServeUrl = 'http://nutrition.free.svipss.top' */
  ServeUrl = 'http://192.168.10.17:8002'
  ServeApi = `${ServeUrl}/dingdongapi`
} else if (env === 'development') {
  // 测试
  ServeUrl = 'https://www.dingdongdrtest.cn'
  ServeApi = `${ServeUrl}/dingdongapi`
  AppId = 'wxa9f271d9bdb71359'
} else if (env === 'production') {
  // 正式
  ServeUrl = 'https://www.dingdongdr.com'
  ServeApi = `${ServeUrl}/dingdongapi`
  AppId = 'wx15d77030403b0ccd'
}
const oss = 'https://oss.dingdongdr.com'
// 客服电话
const serviceTel = '0571-86953716'
const mapUrl =
  'https://apis.map.qq.com/tools/locpicker?search=1&type=1&key=2ISBZ-ZYH66-74QSV-MXM42-MP5MQ-DCB4W&referer=dd'
const onLineOrderStatus = [
  { text: '待支付', value: 0 },
  { text: '已取消', value: 1 },
  { text: '预约中', value: 2 },
  { text: '已退款', value: 3 },
  { text: '已预约', value: 4 },
  { text: '退款中', value: 5 },
  { text: '咨询中', value: 6 },
  { text: '已完成', value: 7 },
  { text: '已转出', value: 8 }
]
const offLineOrderStatus = [
  { text: '待支付', value: 0 },
  { text: '已取消', value: 1 },
  { text: '预约中', value: 2 },
  { text: '已退款', value: 3 },
  { text: '已预约', value: 4 },
  { text: '退款中', value: 5 },
  { text: '上门中', value: 6 },
  { text: '已上门', value: 7 },
  { text: '已完成', value: 8 },
  { text: '已转出', value: 9 }
]
export {
  ServeUrl,
  ServeApi,
  oss,
  serviceTel,
  mapUrl,
  onLineOrderStatus,
  offLineOrderStatus
}
